package cn.naughtior.shch;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;

/**
 * ${DESCRIPTION}
 *
 * @author shitou<shitou@in66.com>
 * @create 2017-03-01 14:22
 */

public class ScheduledJob extends QuartzJobBean{

    private TowBean towBean;

    private ThreeBean threeBean;

    @Override
    protected void executeInternal(JobExecutionContext context) throws JobExecutionException {
        towBean.outMessage();
        threeBean.outMessage();
    }

    public void setTowBean(TowBean towBean) {
        this.towBean = towBean;
    }

    public TowBean getTowBean() {
        return towBean;
    }

    public ThreeBean getThreeBean() {
        return threeBean;
    }

    public void setThreeBean(ThreeBean threeBean) {
        this.threeBean = threeBean;
    }
}